/**
 * 
 */
package com.sys.console.business.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sys.console.business.SysModuleAuthorityService;
import com.sys.console.mapper.Sys_Module_AuthorityMapper;
import com.sys.console.pojo.Sys_Module_Authority_Key;

/**
 * @author HS
 *
 */
@Component
public class SysModuleAuthorityServiceImpl implements SysModuleAuthorityService {

	@Autowired Sys_Module_AuthorityMapper sysModuleAuthorityMapper;
	
	@Override
	public int insert(Sys_Module_Authority_Key record) throws Exception {
		
		return sysModuleAuthorityMapper.insert(record);
	}


	@Override
	public int deleteByPrimaryKey(Sys_Module_Authority_Key record)
			throws Exception {
		
		return sysModuleAuthorityMapper.deleteByPrimaryKey(record);
	}


	@Override
	public int selectExists(Sys_Module_Authority_Key record) throws Exception {
		// TODO Auto-generated method stub
		return sysModuleAuthorityMapper.selectExists(record);
	}


	@Override
	public int deleteByMid(Integer mid) throws Exception {
		// TODO Auto-generated method stub
		return sysModuleAuthorityMapper.deleteByMid(mid);
	}

}
